﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Setting_UserEdit" Codefile="useredit.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title>用户管理：
        <%=PageTitle %>
    </title>
    <base target="_self" />

    <script type="text/javascript">
    var LOCID_SYSCUST_CANTBEBLANK = "\x7b0\x7d \u4e0d\u5f97\u4e3a\u7a7a\u3002";
    var LOCID_SYSCUST_INVALCHARS = "\x7b0\x7d \u4e0d\u5f97\u5305\u542b\u4ee5\u4e0b\u4efb\u4f55\u5b57\u7b26\x3a\x7b1\x7d";
    var LOCID_SYSCUST_ALPHANUMSONLY = "\x7b0\x7d \u53ea\u80fd\u5305\u542b\u5b57\u6bcd\u6570\u5b57\u548c\u4e0b\u5212\u7ebf\u5b57\u7b26\u3002";
    var LOCID_SELECTBOX_BUTTON_ALT = "\u663e\u793a\u9009\u9879\u5217\u8868";
    var LOCID_AUTONUM_CNTPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_CSPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_KBAPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_QTPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_ORDPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_INVPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_CMPPFXLBL = "\u524d\u7f00";
    var LOCID_AUTONUM_CNFRMDROPSFX = "\u8fd9\u4e9b\u66f4\u6539\u5c06\u5e94\u7528\u4e8e\u6240\u6709\u4f7f\u7528\u81ea\u52a8\u7f16\u53f7\u7684\u8bb0\u5f55\u3002\u82e5\u8981\u7ee7\u7eed\uff0c\u8bf7\u5355\u51fb\u201c\u786e\u5b9a\u201d\u3002";
    var LOCID_DEVERROR_BADTYPE_PICKLIST = "\u6b64\u63a7\u4ef6\u53ea\u63a5\u53d7\u5b57\u7b26\u4e32\u3001\u6574\u6570\u6216\u7a7a\u8f93\u5165\u3002";
    var LOCID_FORM_REQUIRED_BKG_COLOR = "";
    var LOCID_FORM_REQUIRED_ALT = "\u5fc5\u9700";
    var LOCID_COPY_SHORTCUT_ERROR = "\u65e0\u6cd5\u5c06\u6b64\u5feb\u6377\u65b9\u5f0f\u590d\u5236\u5230\u526a\u8d34\u677f\u3002";
    var LOCID_UI_DIR = "LTR";
    var LOCID_AM_DESIGNATOR = "\u4e0a\u5348";
    var LOCID_PM_DESIGNATOR = "\u4e0b\u5348";
    var LOCID_FIRST_WEEK_SELECT = "FirstDay";
    var LOCID_UNRECOGNIZE_DOTC = "\x7b0\x7d \u4e0d\u662f\u53ef\u8bc6\u522b\u7684\u5bf9\u8c61\u7c7b\u578b\u3002";
    var LOCID_XML_PROCESS_ERROR = "\u5904\u7406\u60a8\u7684\u8bf7\u6c42\u65f6\u51fa\u9519\u3002\u8bf7\u7a0d\u5019\u518d\u91cd\u8bd5\u3002";
    var LOCID_POPUP_BLOCKER_ERROR = "Ferrari&Maserati After Sales MIS \u7a97\u53e3\u65e0\u6cd5\u6253\u5f00\uff0c\u53ef\u80fd\u5df2\u88ab\u5f39\u51fa\u7a97\u53e3\u963b\u6b62\u7a0b\u5e8f\u6240\u963b\u6b62\u3002\u8bf7\u5c06\u8fd9\u53f0 Ferrari&Maserati After Sales MIS \u670d\u52a1\u5668\u6dfb\u52a0\u5230\u60a8\u7684\u5f39\u51fa\u7a97\u53e3\u963b\u6b62\u7a0b\u5e8f\u5141\u8bb8\u6253\u5f00\u65b0\u7a97\u53e3\u7684\u7ad9\u70b9\u7684\u5217\u8868\u4e2d\x3a";
    var LOCID_BU_CANNOTDISABLE = "\u5df2\u68c0\u6d4b\u5230\u6b64\u64cd\u4f5c\u5c06\u505c\u7528\u6240\u6709\u5269\u4f59\u7684\u4e1a\u52a1\u90e8\u95e8\uff0c\u56e0\u6b64\u65e0\u6cd5\u7ee7\u7eed\u3002";
    var LOCID_DIALOG_OFFSET_WIDTH = "0";
    var LOCID_DIALOG_OFFSET_HEIGHT = "0";
    var LOCID_ERROR_DIALOG_WIDTH = "550";
    var LOCID_ERROR_DIALOG_HEIGHT = "260";
    var LOCID_CONTRACTS_TDIALOG_WIDTH = "350";
    var LOCID_CONTRACTS_TDIALOG_HEIGHT = "350";
    var LOCID_FORMS_SAVE_CONFIRM_TITLE = "\u5c1a\u672a\u4fdd\u5b58\u6240\u505a\u7684\u66f4\u6539\u3002\u8981\u505c\u7559\u5728\u8be5\u9875\u9762\u4e0a\uff0c\u4ee5\u4fbf\u4fdd\u5b58\u6240\u505a\u7684\u66f4\u6539\uff0c\u8bf7\u5355\u51fb\u201c\u53d6\u6d88\u201d\u3002";
    var LOCID_FORM_PROIVE_VALUE_MASK = "\u5fc5\u987b\u63d0\u4f9b\x7b0\x7d\u7684\u503c\u3002";
    var LOCID_FORM_PRINT_DIRTY_MESSAGE = "\u6b64\u8868\u5355\u5df2\u66f4\u6539\uff0c\u6253\u5370\u4e4b\u524d\u5fc5\u987b\u8fdb\u884c\u4fdd\u5b58\u3002";
    var LOCID_ENTER_VALID_NUMBER = "\u5fc5\u987b\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57\u3002";
    var LOCID_REMOTECOMMAND_ERROR = "\u53d1\u751f\u4e86\u9519\u8bef\u3002\u8bf7\u91cd\u8bd5\u6b64\u64cd\u4f5c\u3002\u5982\u679c\u95ee\u9898\u4ecd\u7136\u5b58\u5728\uff0c\u8bf7\u8bbf\u95ee Ferrari&Maserati After Sales MIS \u793e\u533a\u4ee5\u83b7\u53d6\u89e3\u51b3\u65b9\u6848\u6216\u8005\u4e0e\u60a8\u6240\u5728\u7ec4\u7ec7\u7684 Ferrari&Maserati After Sales MIS \u7ba1\u7406\u5458\u8054\u7cfb\u3002\u6700\u540e\uff0c\u60a8\u53ef\u4ee5\u4e0e Microsoft \u652f\u6301\u8054\u7cfb\u3002";

    var WEB_APP_URL = "";
    var HELP_SKU = "OP";
    var _autoNumberTemplate = "\x7b0\x7d-\x7b1\x7d";
    var _autoNumberTemplateSuffix = "\x7b0\x7d-\x7b1\x7d-\x7b2\x7d";
    var IS_LIVE = false;
    var IS_PATHBASEDURLS = true;
    var ORG_UNIQUE_NAME = "webs";
    var _ErrorCodesIsvAborted = "0x80040265";
    var ScriptErrorReportingPreference = 1;
    var ScriptErrorStatusBar = "\u7f51\u9875\u4e0a\u6709\u9519\u8bef\u3002";
    var _bPresenceEnabled = true;
    var ORG_DATE_FORMATSTRING = "yyyy\x2fM\x2fd";
    var ORG_IS_GREGORIANCALENDAR = false;
    var ORG_DATE_SEPARATOR = "-";
    var ORG_DATE_START_DAY = 0;
    var ORG_LANGUAGE_CODE = 2052;
    var ORG_NUMBER_FORMAT_MASK = "\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";
    var ORG_TIME_FORMAT = 0;
    var ORG_SHOW_WEEK_NUMBER = false;
    var ORG_NUMBER_DECIMAL_SEPARATOR = ".";
    var ORG_NUMBER_GROUP_SEPARATOR = ",";
    var SERVER_URL = "http\x3a\x2f\x2fhaocer-qb\x3a5555\x2fhaocer";
    var AUTHENTICATION_TYPE = 0;
    var CRM2007_WEBSERVICE_NS = "http\x3a\x2f\x2fschemas.microsoft.com\x2fcrm\x2f2007\x2fWebServices";
    var CRM2007_CORETYPES_NS = "http\x3a\x2f\x2fschemas.microsoft.com\x2fcrm\x2f2007\x2fCoreTypes";
    var ORG_TIMEZONE_OFFSET = 480;
    var USER_DATE_FORMATSTRING = "yyyy\x2fM\x2fd";
    var USER_IS_GREGORIANCALENDAR = true;
    var USER_DATE_SEPARATOR = "-";
    var USER_DATE_FORMATTED_FORMATSTRING = "yyyy\x2fM\x2fd";
    var DEFAULT_USER_NUMBER_FORMAT_MASK = "\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";
    var USER_LANGUAGE_CODE = 2052;
    var USER_HELP_LCID = "2052";
    var USER_NUMBER_FORMAT_MASK = "\x23,\x23\x230.\x2a\x3b\x7e\x23,\x23\x230.\x2a";
    var USER_TIME_FORMAT = "H\x3amm";
    var USER_SHOW_WEEK_NUMBER = false;
    var USER_NUMBER_DECIMAL_SEPARATOR = ".";
    var USER_NUMBER_GROUP_SEPARATOR = ",";
    var HELP_SERVER_URL = "";
    var _sWebServicesNamespace = "http\x3a\x2f\x2fschemas.microsoft.com\x2fcrm\x2f2006\x2fWebServices";
    var _aWrpcTokens = new Array();
    </script>

    <script type="text/javascript" src="../_static/_common/scripts/encodedecode.js"></script>

    <script type="text/javascript" src="../_static/_controls/util/util.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/global.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/xmlutil.js"></script>

    <script type="text/javascript" src="../_common/windowinformation/windowinformation.js"></script>

    <script type="text/javascript" src="../_static/_forms/formaction.js"></script>

    <script type="text/javascript" src="../_static/_forms/postbackutil.js"></script>

    <script type="text/javascript" src="../_static/biz/teams/members.js"></script>

    <script type="text/javascript" src="../_static/_controls/lookup/lookup.js"></script>

    <script type="text/javascript" src="../_static/sm/workplans/workshift.js"></script>

    <script type="text/javascript" src="../_static/_grid/cmds/util.js"></script>

    <script type="text/javascript" src="../_static/_controls/popupmenu/popupmenu.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/presence.js"></script>

    <script type="text/javascript" src="../_static/_grid/action.js"></script>

    <script type="text/javascript" src="../_static/_common/scripts/details.js"></script>

    <script type="text/javascript" src="../_static/_forms/addrelated.js"></script>

    <script type="text/javascript" src="../_static/_controls/datetime/date.js"></script>

    <script type="text/javascript" src="../_static/_controls/datetime/time.js"></script>

    <script type="text/javascript" src="../_static/_controls/number/number.js"></script>

    <script type="text/javascript" src="../_static/_jQuery/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../_static/_jQuery/jquery_validator.js"></script>

    <link rel="stylesheet" type="text/css" href="../_common/styles/global.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/global-styles.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/global-dynamic-styles.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/fonts.css" />
    <link rel="stylesheet" type="text/css" href="../_nav/menu.css" />
    <link rel="stylesheet" type="text/css" href="../_forms/controls/controls.css" />
    <link rel="stylesheet" type="text/css" href="../_nav/nav.css" />
    <link rel="stylesheet" type="text/css" href="../_controls/notifications/notifications.css" />
    <link rel="stylesheet" type="text/css" href="../_controls/lookup/lookupdialogs.css" />
    <link rel="stylesheet" type="text/css" href="../_common/styles/select.css" />
    <link rel="stylesheet" type="text/css" href="../_forms/controls/form.css" />
    <link rel="stylesheet" type="text/css" href="../_nav/tabs.css" />

    <script type="text/javascript">
    function cancel()
    {
        window.close();
    }
    $(document).ready(setup);
    function setup()
    { 
        validator.setup("#crmForm");
        
        if(!IsNull(GetQueryString("otype")) && Trim(GetQueryString("otype")) == "modify")
        {
//            document.getElementById("txtUsername").readOnly = true;
//            document.getElementById("txtUsername").className = "ms-crm-Text ms-crm-ReadOnly";
        }
    }
    function LoadIFrame(tagID)
    {
        var url = "";
        try
        {
            switch(tagID)
            {
                case "frmRolesforuser":
                    url = "../system/frmRolesforuser.aspx?userid="+Trim(GetQueryString("userid"));
                    frmRolesforuser.document.body.innerHTML = "<table class='stdTable' width='100%' height='100%'><tr><td style='vertical-align: middle' align='center'><IMG alt='' src='../_imgs/AdvFind/progress.gif'><br>" + "Loading data ..." + "</td></tr></table>";
                    break;
            }
        }
        catch(e)
        {
        }
        document.getElementById(tagID).src = url;
    }
    </script>

</head>
<body scroll="no">

    <script type="text/javascript">
    <!--
    function __doPostBack(eventTarget, eventArgument) {
        var theForm = document.forms["crmForm"];
        if (!theForm) {
            theForm = document.crmForm;
        }
        if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
            theForm.__EVENTTARGET.value = eventTarget;
            theForm.__EVENTARGUMENT.value = eventArgument;
            theForm.submit();
        }
    }
    // -->
    </script>

    <div id="success" style="position: absolute; z-index: 300; height: 130px; width: 284px;
        left: 50%; top: 50%; margin-left: -150px; margin-top: -80px;">
        <div style="position: absolute; z-index: 300; width: 270px; height: 90px; background-color: #FFFFFF;
            border: solid #6699CC 1px; font-size: 14px;">
            <div style="font-weight: bolder; border-bottom: #6893cf 1px solid; background-image: url(../_imgs/gridtoolbar_back.gif);
                overflow: hidden; width: 100%; color: #000099; background-repeat: repeat-x; height: 26px;
                text-align: center;">
            </div>
            <div style="height: 64px; line-height: 150%; padding: 0px 3px 0px 3px;" align="center">
                <br />
                <table>
                    <tr>
                        <td valign="top">
                            <img border="0" src="../_imgs/AdvFind/progress.gif" /></td>
                        <td valign="middle" style="font-size: 14px; width: 150px;">
                            Loading ...<br />
                        </td>
                    </tr>
                </table>
                <br />
            </div>
        </div>
        <div id="Layer3" style="position: absolute; width: 270px; height: 108px; z-index: 299;
            left: 4px; top: 5px; background-color: #E8E8E8; border: #E8E8E8 1px solid; display: none;">
        </div>
    </div>

    <script type="text/javascript"> 
        document.getElementById("success").style.display = "none"; 
    </script>

    <script src="../_static/_common/scripts/divcover.js" type="text/javascript"></script>

    <form id="crmForm" runat="server">
        <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
        <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
        <input type="hidden" name="txtRolesId" id="txtRolesId" runat="server" />
        <input type="hidden" name="txtBusinessUnitId" id="txtBusinessUnitId" runat="server" value="e831478f-6c33-4755-9969-f09a12afb0e8" /> 
        <table class="ms-crm-Form-Layout" cellspacing="0" cellpadding="0">
            <colgroup>
                <col width="170" />
                <col />
            </colgroup>
            <tr height="72">
                <td colspan="2">
                    <span id="crmMenuBar">
                        <table cellspacing="0" cellpadding="0" width="100%">
                            <tbody>
                                <tr>
                                    <td>
                                        <table class="ms-crm-MenuBar" id="mnuBar1" cellspacing="0" cellpadding="0">
                                            <tbody>
                                                <tr>
                                                    <td class="ms-crm-MenuBar-Items" nowrap align="left">
                                                        <ul class="ms-crm-MenuBar-Left">
                                                            <li class="ms-crm-Menu" id="file" title="Menu" accesskey="F" tabindex="-1" menu="mnufile">
                                                                <span class="ms-crm-Menu-JewelButton"><a class="ms-crm-Menu-JewelButton" onclick="return false;"
                                                                    tabindex="0" href="javascript:onclick();" target="_self">
                                                                    <img class="ms-crm-Menu-JewelButton" alt="Menu" src="../_imgs/dynbutton_rest.jpg"
                                                                        iconimage="../_imgs/dynbutton_rest.jpg" hoverimage="../_imgs/dynbutton_rest.jpg"
                                                                        openimage="../_imgs/dynbutton_rest.jpg"></a></span> </li>
                                                            <li class="ms-crm-Menu" id="_MBcrmFormSave" title="Save(S)" onclick="window.execScript(action)"
                                                                tabindex="-1" action="if(validator.validatorAll()){this.disabled=true;success.style.display = 'block';HideOverSels('success');__doPostBack('save','');}">
                                                                <span class="ms-crm-Menu-Label"><a class="ms-crm-Menu-Label" onclick="return false;"
                                                                    tabindex="-1" href="javascript:onclick();" target="_self" style="cursor: pointer;">
                                                                    <img class="ms-crm-Menu-ButtonFirst" tabindex="0" alt="Save(S)" src="../_imgs/ico/16_save.gif">Save</a></span></li>
                                                        </ul>
                                                    </td>
                                                    <td class="ms-crm-MenuBar-Items ms-crm-Menu-ICRight" nowrap>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </span>
                    <table class="ms-crm-Form-Title-NoNav" cellspacing="0" cellpadding="0" style="height: 45px;">
                        <tbody>
                            <tr class="ms-crm-Form-Title">
                                <td class="ms-crm-Form-Title" nowrap>
                                    <span class="ms-crm-Form-Breadcrumb">User admin: <span id="spanRoleName" runat="server">Add new a user
                                    </span></span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr class="ms-crm-Form-Background">
                <td id="tdAreas" colspan="2">
                    <div id="areaForm" class="ms-crm-Form-Area">
                        <table class="ms-crm-Form-Area" cellspacing="0" cellpadding="0">
                            <tr>
                                <td>
                                    <table width="100%" height="100%" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="ms-crm-TabBar-Cell">
                                                <ul class="ms-crm-TabBar" id="crmTabBar" onafterchange="crmForm.SetTabFocus()" valign="bottom"
                                                    nowrap>
                                                    <li class="ms-crm-Tab" id="tab0Tab" tabindex="-1" tabid="tab0"><a onclick="return false;"
                                                        href="javascript:onclick();" target="_self">General</a></li> 
                                                </ul>
                                            </td>
                                        </tr>
                                        <tr height="100%">
                                            <td>
                                                <div class="ms-crm-Tab" id="tab0" style="overflow-y: auto; display: inline">
                                                    <table style="table-layout: fixed" cellspacing="3" cellpadding="1" width="100%">
                                                        <colgroup>
                                                            <col width="115" />
                                                            <col />
                                                            <col class="FormSection_WriteColumnHeaders_col" width="115" />
                                                            <col />
                                                        </colgroup>
                                                        <tbody>
                                                            <tr valign="top">
                                                                <td class="ms-crm-Field-Required">
                                                                    <label for="txtUsername">
                                                                        登录名：<img alt="Required" src="../_imgs/frm_required.gif" /></label></td>
                                                                <td>
                                                                    <input id="txtUsername" class="ms-crm-Text" runat="server" required="required" controlname=""
                                                                        isvalidator /></td>
                                                                <td class="ms-crm-Field-Normal">
                                                                    <label for="txtPassword">
                                                                        登录密码：</label>
                                                                </td>
                                                                <td>
                                                                    <input id="txtPassword" type="password" class="ms-crm-Text" runat="server" />
                                                                </td>
                                                            </tr>
                                                            <tr valign="top">
                                                                <td class="ms-crm-Field-Required">
                                                                    <label for="txtFullName">
                                                                        姓名：<img alt="Required" src="../_imgs/frm_required.gif" /></label></td>
                                                                <td>
                                                                    <input class="ms-crm-Text" id="txtFullName" runat="server" required="required" controlname=""
                                                                        isvalidator /></td>
                                                                <td class="ms-crm-Field-Required">
                                                                    <label for="txtNickName">
                                                                        编号：</label></td>
                                                                <td>
                                                                    <input class="ms-crm-Text" id="txtNickName" runat="server" /></td>
                                                            </tr> 
                                                            <tr valign="top" style="display: none;">
                                                                <td class="ms-crm-Field-Normal">
                                                                    <label for="txtInternalEmailAddress">
                                                                        E-Mail：<img alt="必需" src="../_imgs/frm_required.gif" /></label></td>
                                                                <td>
                                                                    <input class="ms-crm-Email-Address" id="txtInternalEmailAddress" runat="server" /></td>
                                                            </tr> 
                                                            <tr valign="top">
                                                                <td class="ms-crm-Field-Normal">
                                                                    <label for="cbxRolesList">
                                                                        角色：<img alt="Required" src="../_imgs/frm_required.gif" /></label>
                                                                </td>
                                                                <td colspan="3">
                                                                    <asp:CheckBoxList ID="cbxRolesList" runat="server" CssClass="ms-crm-RadioButtonList"
                                                                        RepeatDirection="horizontal" RepeatColumns="4">
                                                                    </asp:CheckBoxList>
                                                                </td>
                                                            </tr>
                                                        </tbody>
                                                    </table>
                                                </div> 
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="ms-crm-Form-StatusBar" colspan="2">
                    <b>Status:</b> <span id="crmRenderStatus"><span id="EntityStatusText">
                        <%= PageTitle%>
                    </span></span>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
